-- GENERATED SPELL FOR [Bone Sifter] --


function spell0_22466(pUnit, Event) --@Bore,n/a--
pUnit:FullCastSpellOnTarget(32738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22466', 20000, 1)
end

function spell1_22466(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(31747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22466', 2000, 1)
end

function Sorts_22466(pUnit, Event)
local choix_sorts_22466 = math.random(0, 1)
if choix_sorts_22466 == 0 then
pUnit:RegisterEvent('spell0_22466', 1, 1)
end
if choix_sorts_22466 == 1 then
pUnit:RegisterEvent('spell1_22466', 1, 1)
end
end

function mob22466_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22466', math.random(1500, 3000), 1)
end

function mob22466_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22466_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22466_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22466, 1, 'mob22466_Action')
RegisterUnitEvent(22466, 2, 'mob22466_Leave')
RegisterUnitEvent(22466, 3, 'mob22466_Kill')
RegisterUnitEvent(22466, 4, 'mob22466_Die')
